package test.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("student")
//@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value = "学生实体")
public class Student extends Model<Student> {


    @ApiModelProperty("学号")
    @TableId(type = IdType.INPUT)
    @Excel(name = "学号")
    private String id;

    @ApiModelProperty("姓名")
    @TableField("name")
    @Excel(name = "姓名")
    private String name;


    @ApiModelProperty("班级")
    @TableField("classRoom")
    @Excel(name = "班级")
    private String classRoom;


    @ApiModelProperty("平时成绩")
    @TableField("midScore")
    @Excel(name = "平时成绩")
    private Long midScore;

    @ApiModelProperty("期末成绩")
    @TableField("finalScore")
    @Excel(name = "期末成绩")
    private Long finalScore;


    @ApiModelProperty("总成绩")
    @TableField("totalScore")
    @Excel(name = "总成绩")
    private Long totalScore;
}
